<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        img {
            /* 隐藏元素 */
            display: none;
        }

        div:hover img {
            /* 显示元素 */
            display: block;
        }
    </style>
</head>

<body>
    <!-- display:block 显示 display:none 隐藏 -->
    <div>鼠标移上显示图片
        <img src="./images/1.jpg" alt="">
    </div>

</body>

</html>